import { Base } from '../../../utils/base.js';

class Add extends Base {
  constructor() {
    super();
  }
  addrSubmit(addr, callback) {
   
    var that = this;
    var params = {
      url: 'address',
      type: 'post',
      data: addr,
      sCallback: function (data) {
        callback && callback(data);
      }
    };
    this.request(params);
  }
  getAddress(id, callback)
  {
    var that = this;
    var params = {
      url: 'getAddress/'+id,
      sCallback: function (data) {
        callback && callback(data);
      }
    };
    this.request(params);
  }
};

export { Add };
